import { createSlice } from "@reduxjs/toolkit";

const homeSlice = createSlice({
  name:'home',
  initialState:{
    counter:100,
    title:'mine'
  },
  reducers:{
    increment(state,action){
      state.counter += action.payload
    }
  }
})

export const { increment } = homeSlice.actions
export default homeSlice.reducer